package com.ccjq.shosestore.order.dao;

import com.ccjq.shosestore.order.bo.orderBo;
import com.ccjq.shosestore.order.bo.orderBoGl;
import java.util.List;


public interface orderDao {
    /**
     * 添加订单信息
     * @param order
     * @return
     */
   boolean insertOrderXinXi(orderBo order);

    /**
     * 添加订单关联表
     * @param order
     * @param prid
     * @param quantity
     * @param price
     * @return
     */
   boolean insertOrderGL(String order_rid,String prid,int quantity,int price);

    /**
     * 更改库存中的数量
     * @param prid
     * @param quantity
     * @return
     */

   boolean updateStock(String prid,int quantity);

   orderBo  selectXinXi(String id);

   boolean selectquntity(String prid,int newQuntity);

    int Selectprice(String prid);

    int UpdateStock(String prid,int newQuantity );

    List<orderBo> selectAll(int startRow, int pageSize);

    int  zhs(String userid);

    orderBo dingdanXinXi(String orid);

    List<orderBoGl> shangpin(String orid);
    void deleteShopCar(String userid);
}
